package com.yidu.hbatsams.service.emp;

import com.yidu.hbatsams.domain.AtsEmpCoachAthlete;

import java.util.List;

/**
 * 运动员和教练关系表的Service接口
 */
public interface AtsEmpCoachAthleteService {
    /**
     * 查询所有+模糊查询
     * @param coachName
     * @return
     */
    List<AtsEmpCoachAthlete> findAll(Integer pageNum, Integer pageSize, String coachName);

    /**
     * 查询行数
     * @return
     */
    Long count();

    /**
     * 逻辑删除
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer caId);

    /**
     * 根据ID查询
     * @mbg.generated 2019-10-29
     */
    AtsEmpCoachAthlete selectByPrimaryKey(Integer caId);

    /**
     *新增
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpCoachAthlete record);

    /**
     * 修改
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpCoachAthlete record);

    /**
     * 查询教练运动员信息
     * @param athleteId
     * @param coachId
     * @return
     */
    AtsEmpCoachAthlete findAllMess(Integer athleteId, Integer coachId);
}
